CMAKE_MINIMUM_REQUIRED(VERSION 3.10)

PROJECT(sdl_test)
SET(EXE_NAME sdl_test)

# 设置默认构建类型为 Debug
if(NOT CMAKE_BUILD_TYPE)
    set(CMAKE_BUILD_TYPE "Debug")
endif()

# 输出构建类型信息
message(STATUS "Build type: ${CMAKE_BUILD_TYPE}")



AUX_SOURCE_DIRECTORY(. DIR_SRCS)

ADD_EXECUTABLE(${EXE_NAME} ${DIR_SRCS})

TARGET_INCLUDE_DIRECTORIES(${EXE_NAME} 
    PRIVATE 
    ${CMAKE_CURRENT_SOURCE_DIR}/SDL2_image-2.8.2/include
    ${CMAKE_CURRENT_SOURCE_DIR}/SDL2-2.0.8/include)

TARGET_LINK_LIBRARIES(${EXE_NAME} 
    PRIVATE 
    ${CMAKE_CURRENT_SOURCE_DIR}/SDL2-2.0.8/lib/x64/SDL2.lib
    ${CMAKE_CURRENT_SOURCE_DIR}/SDL2_image-2.8.2/lib/x64/SDL2_image.lib
    )